package com.example.bootes.controller;

import org.elasticsearch.client.RestHighLevelClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

/**
 * @author daxue0929
 * @date 2022/8/22
 */

@RestController
public class TestController {

    final RestHighLevelClient client;

    @Autowired
    public TestController(RestHighLevelClient client) {
        this.client = client;
    }

    /**
     * 服务健康状态检查
     * @return
     * @throws IOException
     */
    @GetMapping("/check")
    public String test() throws IOException {
        return "服务状态: " + true;

    }



}
